import request from '@/utils/request';
import { API } from './enumAPI';

// 用户列表
export const reqCustomList = (data: any = { data: {} }) => request.post<any, any>(API.CUSTOM_LISTS_URL, data);
// 用户详情
export const reqCustomDetail = (data: number | string) => request.get<any, any>(`${API.CUSTOM_DETAIL_URL}/${data}`);
// 更新客户
export const reqUpdateCustomer = (data: any = { data: {} }) => request.post<any, any>(API.CUSTOM_UPDATE_URL, data);
// 批量更新客户
export const reqBatchUpdateCustomer = (data: any = { data: {} }) => request.post<any, any>(API.CUSTOM_BATCH_UPDATE_URL, data);
